from os import environ
from django.conf.urls.defaults import *
from schedule.views import *
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^base/$', base),
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/(.*)', admin.site.root),
)

if 'DJANGO_TEMPLATE' in environ.keys():
    urlpatterns+=patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root':environ['DJANGO_TEMPLATE']}),
    )